import './App.css';
import  router from "./router";
import { RouterProvider } from 'react-router-dom';
import React from 'react';


import {message} from 'antd'

React.$message = function (arg) {
  const { type = 'success', content, duration = 1, onclose } = { ...arg }
  message[type](content, duration, onclose)
}

import dateUtil from '@/core/utils/date.js';
React.$dateUtil = function (method="formatDate",time=new Date(),format="yyyy/MM/dd hh:mm:ss"){
  return dateUtil[method](time,format)
}
// console.log(React.$dateUtil('formatDate',new Date(),"yyyy/MM/dd hh:mm:ss"));


function App() {
  return (
    <div className='app'>
      <RouterProvider router={router}></RouterProvider>
    </div>

  );
}

export default App;
